<?php

namespace App\Service\Message;

use App\Model\User;
use App\Model\UserProfile;
use App\Model\UserRecommand;
use App\Service\BaseService;

/**
 * 推荐人列表（这些人想认识你）
 */
class RecUserListService extends BaseService
{
    public function handle()
    {
        $userId = $this->getUserId();
//        $userIds = UserRecommand::init($userId, 0);
        $ret['list'] = [];
        return $ret;
//        $users = UserProfile::getUsersProfile($userIds);
//        $imAccounts = User::getImAccounts($userIds);
//        array_walk($users, function ($user) use (&$ret, $imAccounts) {
//            $item = UserProfile::buildUserItem($user, $imAccounts);
//            $item['rec_time'] = date('Y-m-d H:i:s');
//            array_push($ret['list'], $item);
//        });
//        return $ret;
    }
}
